package org.studiox.graph.persistence.mybatis.tk.base;

import java.util.List;

public abstract class BaseGraphDao<T> {

  protected BaseGraphMapper<T> mapper;

  public List<T> select(T obj) {
    return mapper.select(obj);
  }

  public T selectOne(T obj) {
    return mapper.selectOne(obj);
  }

  public T selectByPrimaryKey(Long id) {
    return mapper.selectByPrimaryKey(id);
  }

  public List<T> selectAll() {
    return mapper.selectAll();
  }

  public int selectCount(T obj) {
    return mapper.selectCount(obj);
  }

  public boolean existsWithPrimaryKey(Long id) {
    return mapper.existsWithPrimaryKey(id);
  }

  public int insert(T obj) {
    return mapper.insert(obj);
  }

  public int insertSelective(T obj) {
    return mapper.insertSelective(obj);
  }

  public int insertUseGeneratedKeys(T obj) {
    return mapper.insertUseGeneratedKeys(obj);
  }

  public int insertList(List<T> objs) {
    return mapper.insertList(objs);
  }

  public int updateByPrimaryKey(T obj) {
    return mapper.updateByPrimaryKey(obj);
  }

  public int updateByPrimaryKeySelective(T obj) {
    return mapper.updateByPrimaryKeySelective(obj);
  }

  public int delete(T obj) {
    return mapper.delete(obj);
  }

  public int deleteByPrimaryKey(Long id) {
    return mapper.deleteByPrimaryKey(id);
  }
}
